home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / msync.man < prev    next >
Encoding:
Text File  |  1991-02-02  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. MSYNC                 C Library Procedures                  MSYNC
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      msync - sync pages to disk.
  10.  
  11. SSYYNNOOPPSSIISS
  12.      iinntt mmssyynncc((aaddddrr,, lleenn))
  13.      ccaaddddrr__tt aaddddrr;;
  14.      iinntt lleenn;;
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      _M_s_y_n_c takes an address range and forces the pages containing
  18.      the range to disk.  The call will return after the pages are
  19.      written to disk.  After the call, the pages will no longer
  20.      be valid in memory.
  21.  
  22.      If the page is locked in memory it will be unlocked for the
  23.      _m_s_y_n_c call.  By using _m_s_y_n_c and _m_l_o_c_k it is possible for the
  24.      user to control the page-in/page-out process.
  25.  
  26. RREETTUURRNN VVAALLUUEE
  27.      _M_s_y_n_c returns 0 if the call is successful.  Otherwise they
  28.      return -1 and an error code is returned in _e_r_r_n_o.
  29.  
  30. SSEEEE AALLSSOO
  31.      mmap(2), mlock(2), munlock(2)
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0             November 19, 1989                       1
  64.  
  65.  
  66.  
  67.